<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var age = 10;
        ++age;// 相当于age = age + 1；
        console.log(age);

        console.log('----------------------------------');
        //后置递增运算符 age++ 如果单独使用效果是一样的；
        //后置递增 口诀：先返回原值，后自加1；
        var num = 10;
        console.log(num++ + 10);
        console.log(num);


    </script>
</head>

<body>

</body>

</html>